/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-04-21
 * Time: 20:53
 */
public class test {
    public static void main(String[] args) {
        MySingList list = new MySingList();
        list.addLast(44);
        list.addLast(22);
        list.addLast(33);
        list.addLast(44);
        list.display();
        list.removeAllKey(44);
        list.display();
//        list.clear();
//        list.display();
//        boolean ret = list.contains(5);
//        System.out.println(ret);
//        int ret1 = list.size();
//        System.out.println(ret1);



    }
    public static void main1(String[] args) {
        MySingList singleLinkedList = new MySingList();
        singleLinkedList.addFirst(11);
        singleLinkedList.addFirst(22);
        singleLinkedList.addFirst(33);
        singleLinkedList.addFirst(44);
        singleLinkedList.display();

    }
}
